package com.alibaba.algo.cooperation.usercomponent.vo.res.user;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class ResourceActionInfo {

    private  long resourceId;
    private String resourceCode;
    private String resourceName;
    private long parentId;

    private List<ActionInfo> actionList;

    public ResourceActionInfo() {
    }

    public ResourceActionInfo(long resourceId, String resourceCode, String resourceName, long parentId){
        this.resourceId=resourceId;
        this.resourceCode=resourceCode;
        this.resourceName=resourceName;
        this.parentId=parentId;
        this.actionList=new ArrayList<ActionInfo>();
    };
    public void addAction(ActionInfo actionInfo){
        actionList.add(actionInfo);
    }

}
